package com.iss.yunpan.service.impl;

import com.iss.yunpan.dao.FileCollectDao;
import com.iss.yunpan.entity.FileCollect;
import com.iss.yunpan.service.FileCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: lcp
 * @Date: 2021/8/25 9:11
 */
@Service
public class FileCollectServiceImpl implements FileCollectService {
    @Autowired
    private FileCollectDao fileCollectDao;
    @Override
    public List<FileCollect> getAllCollectFile(String userid) {
        return fileCollectDao.getAllCollectFile(userid);
    }

    @Override
    public void insert(FileCollect collect) {
        fileCollectDao.insert(collect);
    }

    @Override
    public FileCollect check(String userid, Integer fileId) {
        return fileCollectDao.check(userid,fileId);
    }

    @Override
    public void del(Integer id) {
        fileCollectDao.del(id);
    }
}
